/**
 * Index actual del registros
 * @author Roberto J. Blasco
 * @version 1.0
 * @type {Number}
 * @properties={typeid:35,uuid:"7AFD2932-C582-43C5-9A4A-3D4BCE35D9DB",variableType:4}
 */
var $n = 0;

/**
 * Número total de registros en el foundset
 * @author Roberto J. Blasco
 * @version 1.0
 * @type {Number}
 * @properties={typeid:35,uuid:"59518D22-2218-49A4-AC68-6BAA169CA06D",variableType:4}
 */
var $m = 0;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"9ACDCE09-8637-44AB-8706-3A00354B6EEB"}
 */
function _ir_formulario(event) {

	var nombre_tabla = databaseManager.getDataSourceTableName(foundset.getSelectedRecord().foundset.getDataSource());
	var frm = "frm_" + nombre_tabla;
	globals.ir_formulario(event, frm,foundset,globals.$MODO_LECTURA);
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"5BA086A5-A0C9-498B-917B-1EFFC5F2DBD1"}
 */
function _eliminar(event) {

	foundset.deleteRecord(foundset.getSelectedRecord());
}
